package com.car.mapper;

import com.car.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    List<Role> list(@Param("role") Role role,
                    @Param("startIndex") Integer startIndex,
                    @Param("pageSize") Integer pageSize);

    Integer selectSysUserCount(@Param("role") Role role);

    Integer add(Role role);

    int delete(Integer role_id);

    int update(Role role);

    Role getByid(Integer role_id);
}
